@extends('admin._layouts.default')

@section('main')

      <div class="row-fluid ">
        <div class="span12 box gradient ">
      <div class="title">
            <div class="row-fluid">
                <h3>
                  <i class=" icon-group"></i> 顾问管理
                </h3>
            </div>
        </div><!-- End .title -->
        <div class="content">
          <ul id="tabExample1" class="nav nav-tabs">
            <li class="active"><a href="#partner1" data-toggle="tab">已审核</a></li>
            <li><a href="#partner2" data-toggle="tab" style="position:relative">未审核<span class="notifications notifications_tab">3</span></a></li>
          </ul>
          <div class="tab-content" id="staff_list">
            <div class="tab-pane fade in active" id="partner1">
            <table id="datatable_in" class="responsive table table-striped table-bordered" style="width:100%;margin-bottom:0; ">
              <thead>
               <tr>
                 <th width="40">
                   <label class="checkbox "><input type="checkbox"></label>
                 </th>
                 <th width="80">
                   头像
                  </th>
                  <th width="80">
                    <i class="icon-wechat"></i>昵称
                  </th>
                  <th width="80">
                    姓名
                  </th>
                  <th width="120">
                   联系方式
                  </th>
                 <th>
                   客户数
                 </th>
                 <th>
                   已提现金额（积分）
                  </th>
                 <th>
                   可用积分/累计
                 </th>
                 <th width="120">
                    操作
                 </th>
               </tr>
              </thead>
              <tbody>
              @foreach($staffs as $staff)
               <tr>
                  <td>
                    <label class="checkbox "><input type="checkbox"></label>
                  </td>
                  <td>
                   <img class="thumbnail small" src="{{ $staff->avatar }}">
                  </td>
                 <td>
                    {{ $staff->nickname }}
                  </td>
                  <td>
                    {{ $staff->name }}
                 </td>
                 <td>
                    <small><i class=" icon-map-marker"></i> <strong>{{ $staff->address }}</strong></small><br/>
                    <small><i class=" icon-phone-sign"></i><strong>{{ $staff->tel }}</strong></small>
                 </td>
                  <td>
                   {{ $staff->cu_count }}
                  </td>
                 <td>
                   1400 <em class="color_gray">（460）</em>
                 </td>
                 <td>
                   {{ $staff->use_points }} / {{ $staff->all_points }}
                  </td>
                 <td>
                    <div class="btn-group1">
                      <a class="btn btn-small" rel="tooltip" data-placement="left" data-original-title="清空积分" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-trash"></i></a>
                     <a class="btn btn-inverse btn-small" rel="tooltip" data-placement="bottom" data-original-title="删除顾问" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-remove icon-white"></i></a>
                   </div>
                 </td>
               </tr>
               @endforeach
               </tbody>
            </table>
                <div class="row-fluid control-group">
                 <div class="pull-left span6" action="#">
                    <div class=" ">
                      <div class="controls inline input-large pull-left">
                       <select data-placeholder="批量操作: " class="chzn-select " id="default-select">
                          <option value=""></option>
                         <option value="Bender">删除</option>
                       </select>
                     </div>
                      <button type="button" class="btn inline">执行</button>
                    </div>
                  </div>
                 <div class="span6">
                    <div class="pagination pull-right ">
                        <?php echo $staffs->links() ?>
                    </div>
                  </div>
                </div>
                <br/>
               <!-- End row-fluid -->
            </div>
            <div class="tab-pane fade" id="partner2">
            <table id="datatable_out" class="responsive table table-striped table-bordered" style="width:100%;margin-bottom:0; ">
              <thead>
               <tr>
                 <th width="80">
                   头像
                  </th>
                  <th width="80">
                    <i class="icon-wechat"></i>昵称
                  </th>
                  <th width="80">
                    姓名
                  </th>
                  <th>
                   联系方式
                  </th>
                  <th>
                   注册来源
                  </th>
                 <th>
                    操作
                 </th>
               </tr>
              </thead>
              <tbody>
               <tr>
                  <td>
                   <img class="thumbnail small" src="img/message_avatar4.png">
                  </td>
                 <td>
                    和夫
                  </td>
                  <td>
                    王智辉
                 </td>
                 <td>
                    <small><i class=" icon-map-marker"></i> <strong>浙江 宁波</strong></small><br/>
                    <small><i class=" icon-phone-sign"></i><strong>13333333333</strong></small>
                 </td>
                 <td>
                    自主注册
                 </td>
                 <td>
                    <div class="btn-group1">
                      <a class="btn btn-small" rel="tooltip" data-placement="left" data-original-title="审核" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-thumbs-up"></i></a>
                      <a class="btn btn-small" rel="tooltip" data-placement="left" data-original-title="拒绝" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-thumbs-down"></i></a>
                     <a class="btn btn-inverse btn-small" rel="tooltip" data-placement="bottom" data-original-title="删除" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-remove icon-white"></i></a>
                   </div>
                 </td>
               </tr>
               <tr>
                  <td>
                   <img class="thumbnail small" src="img/message_avatar4.png">
                  </td>
                 <td>
                    和夫
                  </td>
                  <td>
                    王智辉
                 </td>
                 <td>
                    <small><i class=" icon-map-marker"></i> <strong>浙江 宁波</strong></small><br/>
                    <small><i class=" icon-phone-sign"></i><strong>13333333333</strong></small>
                 </td>
                 <td>
                    陈俊杰 （陈昵称）邀请
                 </td>
                 <td>
                    <div class="btn-group1">
                      <a class="btn btn-small" rel="tooltip" data-placement="left" data-original-title="审核" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-thumbs-up"></i></a>
                      <a class="btn btn-small" rel="tooltip" data-placement="left" data-original-title="拒绝" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-thumbs-down"></i></a>
                     <a class="btn btn-inverse btn-small" rel="tooltip" data-placement="bottom" data-original-title="删除" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-remove icon-white"></i></a>
                   </div>
                 </td>
               </tr>
               <tr>
                  <td>
                   <img class="thumbnail small" src="img/message_avatar4.png">
                  </td>
                 <td>
                    和夫
                  </td>
                  <td>
                    王智辉
                 </td>
                 <td>
                    <small><i class=" icon-map-marker"></i> <strong>浙江 宁波</strong></small><br/>
                    <small><i class=" icon-phone-sign"></i><strong>13333333333</strong></small>
                 </td>
                 <td>
                    自主注册
                 </td>
                 <td>
                    <div class="btn-group1">
                      <a class="btn btn-small" rel="tooltip" data-placement="left" data-original-title="审核" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-thumbs-up"></i></a>
                      <a class="btn btn-small" rel="tooltip" data-placement="left" data-original-title="拒绝" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-thumbs-down"></i></a>
                     <a class="btn btn-inverse btn-small" rel="tooltip" data-placement="bottom" data-original-title="删除" data-toggle="modal" data-target="#confirm_alert"><i class="gicon-remove icon-white"></i></a>
                   </div>
                 </td>
               </tr>


               </tbody>
            </table>
                <div class="row-fluid control-group">
                    <div class="pagination pull-right ">
                      <ul>
                       <li><a href="#">上一页</a></li>
                        <li><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">下一页</a></li>
                      </ul>
                    </div>
                  </div>
                </div>
                <br/>


            </div>
          </div>
        </div> <!-- End .content -->


        </div>
        <!-- End box -->


@stop

@section('script')

<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/full-calendar/fullcalendar.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/jquery.peity.min.js') }}"></script>
<script type="text/javascript" language="javascript" src="{{ URL::asset('web/js/plugins/datatables/js/jquery.dataTables.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/chosen/chosen/chosen.jquery.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/flot/jquery.flot.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/jquery.uniform.min.js') }}"></script>
<script src="{{ URL::asset('web/js/plugins/justGage.1.0.1/resources/js/raphael.2.1.0.min.js') }}"></script>
<script src="{{ URL::asset('web/js/plugins/justGage.1.0.1/resources/js/justgage.1.0.1.min.js') }}"></script>
<script src="{{ URL::asset('web/js/scripts.js') }}"></script>



@stop
